# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-settings
pkgver=4.18.4
pkgrel=0
pkgdesc="Settings manager for xfce"
url="https://xfce.org/"
arch="all"
license="GPL-2.0-only"
subpackages="$pkgname-lang"
makedepends="
	exo-dev
	garcon-dev
	intltool
	libcanberra-dev
	libnotify-dev
	libxcursor-dev
	libxfce4ui-dev
	libxi-dev
	libxklavier-dev
	libxrandr-dev
	xf86-input-libinput-dev
	"
source="https://archive.xfce.org/src/xfce/xfce4-settings/${pkgver%.*}/xfce4-settings-$pkgver.tar.bz2
	alpine-defaults.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--enable-libxklavier \
		--enable-xrandr \
		--enable-sound-settings \
		--enable-xorg-libinput
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
2f9e2de4a3a0cc59b4701b44899464532fbae8805270485d2821b65b9d78be54bb636c4cd4205de97e18c13b20912fcd1f4ca0b3baa561bf1a783829f53a06a0  xfce4-settings-4.18.4.tar.bz2
e0efdee2eaf833ae1ff8c428e3b2925191bdd3dad8a747705295d7c8bf170725906f4a96b3b332ba9ef958c4b5899448de6461b97503e997747e91d800138f8b  alpine-defaults.patch
"
